package com.yunshang.shoppingmall.common;

import com.yunshang.shoppingmall.entity.UserNo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class loginOut {

    public loginOut() {
    }
    public static boolean checkLogin(HttpServletRequest request) {
        HttpSession session = request.getSession();
        UserNo userNo1 = (UserNo) session.getAttribute("userNo");
        if (userNo1 == null) {
            return false;
        } else {
            return true;
        }
    }
}
